package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.system.domain.PStoreOrder;
import com.ruoyi.system.domain.vo.PStoreOrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单Mapper接口
 *
 * @author ruoyi
 * @date 2022-08-01
 */
public interface PStoreOrderMapper extends BaseMapperPlus<PStoreOrderMapper, PStoreOrder, PStoreOrderVo> {

    /**
     * 联查-订单
     */
    Page<PStoreOrderVo> selectVoLeftPage(@Param("build") Page<Object> build, @Param("ew") QueryWrapper<PStoreOrder> lqw);

    /**
     *
     * @param build
     * @param lqw
     * @return
     */
    Page<PStoreOrder> selectVoMyFontPage(@Param("build") Page<Object> build, @Param("ew") LambdaQueryWrapper<PStoreOrder> lqw);

    List<PStoreOrder> integralRecordList(@Param("userId") Long userId, @Param("pageQuery") PageQuery pageQuery);

    List<PStoreOrder> shopOrderDetail(@Param("orderId") String orderId);

    List<PStoreOrder> shopOrderList(@Param("ind") String ind, @Param("userId") Long userId, @Param("pageQuery") PageQuery pageQuery);
}
